package com.whminwei.edu.api.gateway.client;

import com.whminwei.common.feign.decoder.FullHttpRspnConfig;
import com.whminwei.common.http.rspn.BaseHttpResponse;
import com.whminwei.edu.api.gateway.pojo.PutMappingReq;
import com.whminwei.edu.api.gateway.pojo.PutNeedAuthReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author wangy
 * @since 2024/1/15
 */
@FeignClient(name = "xzzg-gateway", contextId = "gateway-for-auth", configuration = FullHttpRspnConfig.class)
public interface AuthNoClient {
    @PostMapping("/auth/putUserAuthMapping")
    BaseHttpResponse putUserAuthMapping(@RequestBody PutMappingReq putMappingReq);


    @PostMapping("/auth/putNeedAuthMapping")
    BaseHttpResponse putNeedAuthMapping(@RequestBody PutNeedAuthReq putNeedAuthReq);
}
